-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slurp refactoring #914 #1119
Slurp refactoring #914 #1119
Conversation
sergeyboyko0791
commented
Oct 27, 2021
- Add SlurpError
- Refactor slurp_req, slurp_url so they return SlurpResult
- Replace slurp functions into native/wasm common::transport
- Replace native executor mod into native_executor.rs
- Rename executor.rs into wasm_executor.rs
- Replace wio mod from common.rs into wio.rs
* Add SlurpError * Refactor slurp_req, slurp_url so they return SlurpResult * Replace slurp functions into native/wasm common::transport * Replace native executor mod into native_executor.rs * Rename executor.rs into wasm_executor.rs * Replace wio mod from common.rs into wio.rs
@cipig could you please check if mm2 returns/logs addresses of slow RPC nodes? |
* Return fetch_json, post_json to transport.rs * Add slurp_post_json in WASM and native
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
updated 2 nodes to this branch and waiting for timeouts |
It's hard to understand what node's result we should consider as "truth" in this case. I think it's out of this PR scope - switching between addresses should happen in case of network errors. |
ok, catched first errors, they now show up like this
i know it's related to Polygon coins and to which of them, but not which server it is |
maybe it's related to my own timeouts (how long the bot waits for response from mm2 on certain calls) |
saw this error to gas_station_url
it contains the URL |
Hmm, since a request to some RPC node has not been timed out, you didn't get an error from mm2. I'll try to add a log message on the timeout.
60 seconds. As you said before, you may not receive an error from mm2 due to your own timeouts. I'll add a log message anyway to catch the error. |
246e565
lgtm
or from
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapproving